package com.byxy.service;

import com.byxy.dao.BaseDao;
import com.byxy.dao.DepartmentDaoImpl;
import com.byxy.model.Department;

import java.util.List;

public class DepartmentServiceImpl implements BaseService<Department> {
	BaseDao<Department> dePMDao = new DepartmentDaoImpl();
	@Override
	public int add(Department dePM) {
		return dePMDao.add(dePM);
	}

	@Override
	public int deleteById(int id) {
		return dePMDao.deleteById(id);
	}

	@Override
	public int update(Department dePM) {
		return dePMDao.update(dePM);
	}

	@Override
	public List<Department> findAll() {
		return dePMDao.findAll();
	}

	@Override
	public Department findById(int id) {
		return dePMDao.findById(id);
	}

}
